﻿@{
    string url = "";
    if (Request.Path.Contains("wangzhai"))
    {
        url = "../wangzhai/" + (Request.RequestContext.RouteData.Values["action"] ?? "").ToString();
    }
    else
    {
        url = "../" + (Request.RequestContext.RouteData.Values["controller"] ?? "").ToString() + "/" +
        (Request.RequestContext.RouteData.Values["action"] ?? "").ToString();
    }
    string pagination = Onlyle.Business.PagerHelper.Pageer(Request.QueryString["p"], ViewBag.PageCount.ToString(), 10,
        url + "?");

    ViewContext.Writer.Write(pagination);
 }

